object Test05 {
  def main(args: Array[String]): Unit = {
    val stu1 = new student5("", 0)
    val stu2 = new student5("北京")
  }
}

class student5 (var name:String, var age:Int, var address:String) {
  println("student5主构造器初始化")

  // 第一个辅助器
  def this(name: String, age: Int) {
    this(name, age, "")
    println("student5调用第一个辅助构造方法")
  }

  // 第二个辅助器
  def this (address: String) {
    this ("", 0, address)
    println(s"student5调用第二个辅助构造方法$address")
  }
}
